<?php
namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

use App\Http\Models\Config;

class TagController extends Controller{

    public function index(Request $request)
    {
        $data = Config::where('ckey','tag')->first();
        $data['cval'] = json_decode($data['cval'],true);
	    $data['cval'] = $data['cval']?$data['cval']:[];
        return view("admin.tag.index",['data'=>$data,'active'=>'tag']);
    }


}
